<template>
    <div class="glass-card-container">
        <div class="glass-card-content">
            <div class="glass-card" style="--r:-15" data-text="Design"></div>
            <div class="glass-card" style="--r:5" data-text="Code"></div>
            <div class="glass-card" style="--r:25" data-text="Launch"></div>
            <div class="glass-card" style="--r:-15" data-text="Earn"></div>
        </div>
    </div>
</template>

<script>
export default {
    name: "GlassCard",
    components: {},
    data() {
        return {
        }
    },
    computed: {},
    methods: {

    },
    created() {

    },
    mounted() {

    },
    beforeUnmount() {

    },
}
</script>

<style scoped>
.glass-card-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glass-card-content{
    width: 1200px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glass-card {
    position: relative;
    width: 200px;
    height: 240px;
    background: linear-gradient(#fff2, transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    border-radius: 10px;
    margin: 0 -45px;
    transform: rotate(calc(var(--r) * 1deg));
}

.glass-card::before {
    content: attr(data-text);
    position: absolute;
    bottom: 0%;
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.glass-card-content:hover .glass-card {
    transform: rotate(0deg);
    margin: 0 20px;
}
</style>